<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
<script>
    (function(root,fun){
        console.log(root);
        fun();
    })(this,function(){
        console.log(123);
    })

</script>
</body>
</html>